package com.mjlf.hometeach.common.service.assit;

import com.mjlf.hometeach.common.db.assit.ClassifyDao;
import com.mjlf.hometeach.common.entity.assit.Classify;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @auther a123
 * @create 2018-05-06 11:33
 * @desc 科目分类服务
 */
@Service
public class ClassifyService implements ClassifyDao {
    @Autowired
    private ClassifyDao classifyDao;

    @Override
    public int save(Classify classify) {
        return classifyDao.save(classify);
    }

    @Override
    public int deleteById(Integer classifyId) {
        return classifyDao.deleteById(classifyId);
    }

    @Override
    public int updateById(Classify classify) {
        return classifyDao.updateById(classify);
    }

    @Override
    public Classify getClassifyById(Integer classifyId) {
        return classifyDao.getClassifyById(classifyId);
    }

    @Override
    public List<Classify> listClassifyByCondition(Classify classify) {
        return classifyDao.listClassifyByCondition(classify);
    }
}
